﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XbsWebAPI.EntityFrameworkCore.Entities.Enums;

namespace XbsWebAPI.Application.CampRoom.Dtos
{
    /// <summary>
    /// 获取房型价格信息
    /// </summary>
    public class HouseTypePriceDto
    {
        public Guid Id { get; set; }

        //public Guid? CampId { get; set; }

        //public string CampName { get; set; }

        /// <summary>
        /// 淡季价格 信息
        /// </summary>
        public PriceInfo LowSeasonPriceInfo { get; set; } = new PriceInfo();

        /// <summary>
        /// 旺季价格 信息
        /// </summary>
        public PriceInfo HighSeasonPriceInfo { get; set; } = new PriceInfo();
    }

    public class PriceInfo
    {
        /// <summary>
        /// 淡季-基础房价
        /// </summary>
        public decimal BasicPrice { get; set; }

        /// <summary>
        /// 淡季-周末价格
        /// </summary>
        public decimal? WeekendPrice { get; set; }

        /// <summary>
        /// 特殊日价格设置
        /// </summary>
        public List<SpecialDayPrice> SpecialDayPrices { get; set; } = new List<SpecialDayPrice>();

        /// <summary>
        /// 节假日价格设置
        /// </summary>
        public List<HolidayPrice> HolidayPrices { get; set; } = new List<HolidayPrice>();

    }

    public class SpecialDayPrice
    {
        /// <summary>
        /// 日期范围
        /// </summary>
        public string DateRange { get; set; }

        public decimal Price { get; set; }


    }

    public class HolidayPrice
    {
        public string Name { get; set; }

        public string DateRange { get; set; }

        public decimal Price { get; set; }
    }
}
